﻿namespace BrowserGameFramework.Controls.ControlCommon
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Web.UI.WebControls;

    /// <summary>
    /// The Imagebutton Tag
    /// </summary>
    public class MapCommon
    {
        #region constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="MapCommon"/> class.
        /// </summary>
        public MapCommon()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MapCommon"/> class.
        /// </summary>
        /// <param name="x">The x.</param>
        /// <param name="y">The y.</param>
        /// <param name="type">The type.</param>
        public MapCommon(int id, int x, int y, int type, Image picture)
        {
            ID = id;
            X = x;
            Y = y;
            Type = type;
            Picture = picture;
        }

        #endregion constructor

        #region props

        /// <summary>
        /// Gets or sets the X.
        /// </summary>
        /// <value>The X.</value>
        public int X { get; set; }

        /// <summary>
        /// Gets or sets the Y.
        /// </summary>
        /// <value>The Y.</value>
        public int Y { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        public int Type { get; set; }

        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        public int ID { get; set; }

        /// <summary>
        /// Gets or sets the picture.
        /// </summary>
        /// <value>The picture.</value>
        public Image Picture { get; set; }

        #endregion props
    }
}
